/* 科技感背景增强 */
.cyber-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 30%, #16213e 60%, #0f3460 100%);
    z-index: -3;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 25s linear infinite;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(0, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 0, 255, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 0, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(0, 255, 0, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particleFloat 20s linear infinite;
}

.data-streams {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(0, 255, 255, 0.1) 100%),
        linear-gradient(0deg, transparent 98%, rgba(255, 0, 255, 0.1) 100%);
    background-size: 150px 150px;
    animation: dataFlow 15s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

@keyframes particleFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

@keyframes dataFlow {
    0% { background-position: 0 0; }
    100% { background-position: 150px 150px; }
}

/* 导航栏科技风格 */
.cyber-nav {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(25px);
    border-bottom: 2px solid rgba(0, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 255, 255, 0.2);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
}

.brand-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.brand-subtitle {
    font-size: 0.7rem;
    color: #888;
    letter-spacing: 2px;
    opacity: 0.8;
}

.nav-menu li a {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(0, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
}

.nav-menu li a:hover {
    background: rgba(0, 255, 255, 0.2) !important;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* 主要内容区域 */
.routes-main {
    padding-top: 100px;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* 页面标题区域 */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.header-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.header-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00ffff, #ff00ff, #ffff00, #00ff00, #00ffff);
    background-size: 300% 100%;
    animation: rainbowFlow 4s linear infinite;
}

@keyframes rainbowFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 300% 0%; }
}

.page-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.title-icon {
    font-size: 3.5rem;
    margin-right: 1rem;
    filter: drop-shadow(0 0 15px rgba(255, 255, 0, 0.8));
    animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.title-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.page-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    min-width: 120px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 0.5rem;
}

/* 筛选控制区域 */
.filter-section {
    margin-bottom: 3rem;
}

.filter-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.filter-label {
    color: #00ffff;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.filter-select {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #fff;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.filter-select option {
    background: #1a1a2e;
    color: #fff;
}

/* 路线网格 */
.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.route-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.route-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.route-card:hover::before {
    left: 100%;
}

.route-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
}

.route-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.route-title {
    font-size: 1.4rem;
    color: #fff;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.route-type {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.route-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
    font-size: 0.9rem;
}

.info-icon {
    color: #00ffff;
    font-size: 1rem;
}

.route-spots {
    margin-bottom: 1.5rem;
}

.spots-title {
    color: #00ffff;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.spots-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.spot-tag {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.spot-tag:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.route-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.action-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-view {
    background: linear-gradient(135deg, #00ffff, #0080ff);
    color: white;
}

.btn-view:hover {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-remove {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
}

.btn-remove:hover {
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
    transform: translateY(-2px);
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.route-modal .modal-content {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #00ffff;
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #ff4757;
    transform: scale(1.2);
}

.modal-footer {
    padding: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #00ffff, #0080ff);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .routes-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .nav-menu {
        display: none;
    }
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #ccc;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-message {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.empty-suggestion {
    font-size: 1rem;
    opacity: 0.8;
}